package eu.codlab.androidemu.services;

import eu.codlab.src.game.R;

public class BluetoothStateHelper {
	public static int getResourceFromBluetoothStateServer(BluetoothState state){

		int str = R.string.bluetooth_notconnected;
		switch(state){
		case CONNECTING:str =R.string.bluetooth_server_connecting;break;
		case CONNECTED:str =R.string.bluetooth_server_connected;break;
		case CLOSED:str =R.string.bluetooth_server_closed;break;
		case NOBLUETOOTH:str =R.string.bluetooth_server_nobluetooth;break;
		default:break;
		}
		return str;
	}
	
	public static int getResourceFromBluetoothState(BluetoothState state){

		int str = R.string.bluetooth_notconnected;
		switch(state){
		case CONNECTING:str =R.string.bluetooth_connecting;break;
		case CONNECTED:str =R.string.bluetooth_connected;break;
		case CLOSED:str =R.string.bluetooth_closed;break;
		case NOBLUETOOTH:str =R.string.bluetooth_nobluetooth;break;
		default:break;
		}
		return str;
	}
}
